.TH qthread_finalize 3 "NOVEMBER 2006" libqthread "libqthread"
.SH NAME
.B qthread_finalize
\- terminate all qthreads and free library data stuctures
.SH SYNOPSIS
.B #include <qthread.h>

.I void
.br
.B qthread_finalize
(void);
.SH DESCRIPTION
Use this function to clean up the qthreads environment after execution of the
program has finished. This function will tell the shepherds to terminate at the
next context switch, so only use it when you are certain that execution has
completed. This function may be called multiple times safely.
.SH SEE ALSO
.BR qthread_initialize (3)
